<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <%= javascript_include_tag "prototype" %>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Pictures: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag 'carteContinents' %>  
</head>
<body>
	
<%= image_tag("countryr.png", :height => "75") %>

<% if logged_in? %>
	Bienvenue <%= current_user.login %>
    <div id="container">
	<% if current_user.status == 'admin' %>
		<!-- Menu pour l'administrateur -->
		<ul>
			<li class="menu" id="profile"><span><a href="/countryr">Rechercher</a></span></li>
			<li class="menu" id="profile"><span><a href=<%= countries_path %>>Pays</a></span></li>
			<li class="menu" id="profile"><span><a href=<%= continents_path %>>Continents</a></span></li>
			<li class="menu" id="profile"><span><a href=<%= pictures_path %>>Photos</a></span></li>
			<li class="menu" id="profile"><span><a href=<%= albums_path %>>Albums</a></span></li>
			<li class="menu" id="profile"><span><a href=<%= comments_path %>>Commentaires</a></span></li>
			<li class="menu" id="profile"><span><a href=<%= users_path %>>Utilisateurs</a></span></li>
			<li class="menu" id="profile"><span><a href="/logout">Logout</a></span></li>
		</ul>
	<% else %>
	<!-- Menu pour le membre -->
	<ul>
		<li class="menu" id="profile"><span><a href="/countryr">Rechercher</a></span></li>
		<li class="menu" id="profile"><span><a href=<%= pictures_path %>>Mes photos</a></span></li>
		<li class="menu" id="profile"><span><a href=<%= albums_path %>>Mes albums</a></span></li>
		<li class="menu" id="profile"><span><a href=<%= comments_path %>>Mes commentaires</a></span></li>
		<li class="menu" id="profile"><span><a href="/users/0/edit">Mon compte</a></span></li>
		<li class="menu" id="profile"><span><a href="/logout">Logout</a></span></li>
	</ul>
	<% end %>
<% else %>
    <div id="container">
	<!-- Menu pour le visiteur -->
	<ul>
		<li class="menu" id="profile"><span><a href="/countryr">Rechercher</a></span></li>
		<li class="menu" id="profile"><span><a href="/login">Login</a></span></li>
		<li class="menu" id="profile"><span><a href="/signup">S'enregistrer</a></span></li>
	</ul>
<% end %>
</div>

<p style="color: green"><%= flash[:notice] %></p>

<%= yield  %>

</body>
</html>
